package com.neuedu.corejava.ch6.homework;

public class Computer {
	
	private char color;
	private int cpu;
	
	public Computer(){}
	
	
	public Computer(char color, int cpu) {
		super();
		this.color = color;
		this.cpu = cpu;
	}
	
	public int getCpu(){
		return cpu;
	}
	
	public int getColor(){
		return color;
	}
	
	public void setCpu(int cpu){
		this.cpu = cpu;
	}
	
	public void setColor(char color){
		this.color = color;
	}

	public void showComputer(){
		System.out.printf("笔记本的颜色：%c\t CPU: %d\n",getColor(),getCpu());
	}


}
